package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HandoverManagementMapper;
import com.ruoyi.system.domain.HandoverManagement;
import com.ruoyi.system.service.IHandoverManagementService;

/**
 * 交接管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-22
 */
@Service
public class HandoverManagementServiceImpl implements IHandoverManagementService 
{
    @Autowired
    private HandoverManagementMapper handoverManagementMapper;

    /**
     * 查询交接管理
     * 
     * @param id 交接管理主键
     * @return 交接管理
     */
    @Override
    public HandoverManagement selectHandoverManagementById(Integer id)
    {
        return handoverManagementMapper.selectHandoverManagementById(id);
    }

    /**
     * 查询交接管理列表
     * 
     * @param handoverManagement 交接管理
     * @return 交接管理
     */
    @Override
    public List<HandoverManagement> selectHandoverManagementList(HandoverManagement handoverManagement)
    {
        return handoverManagementMapper.selectHandoverManagementList(handoverManagement);
    }

    /**
     * 新增交接管理
     * 
     * @param handoverManagement 交接管理
     * @return 结果
     */
    @Override
    public int insertHandoverManagement(HandoverManagement handoverManagement)
    {
        return handoverManagementMapper.insertHandoverManagement(handoverManagement);
    }

    /**
     * 修改交接管理
     * 
     * @param handoverManagement 交接管理
     * @return 结果
     */
    @Override
    public int updateHandoverManagement(HandoverManagement handoverManagement)
    {
        return handoverManagementMapper.updateHandoverManagement(handoverManagement);
    }

    /**
     * 批量删除交接管理
     * 
     * @param ids 需要删除的交接管理主键
     * @return 结果
     */
    @Override
    public int deleteHandoverManagementByIds(Integer[] ids)
    {
        return handoverManagementMapper.deleteHandoverManagementByIds(ids);
    }

    /**
     * 删除交接管理信息
     * 
     * @param id 交接管理主键
     * @return 结果
     */
    @Override
    public int deleteHandoverManagementById(Integer id)
    {
        return handoverManagementMapper.deleteHandoverManagementById(id);
    }
}
